/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cip.esymons.tesoreria.bc;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.ejb.EJB;
import javax.ejb.SessionContext;
import javax.ejb.Stateless;

/**
 *
 * @author Administrador
 */
@Stateless
@EJB(name = "RealizarExoneracionBean", beanInterface = RealizarExoneracionLocal.class)
public class EjecutarExoneracionBean implements EjecutarExoneracionLocal {

    @Resource
    SessionContext context;
    RealizarExoneracionLocal realizarExoneracionLocal;

    @PostConstruct
    public synchronized void init() {
        realizarExoneracionLocal = (RealizarExoneracionLocal) context.lookup("RealizarExoneracionBean");
    }

    public synchronized RealizarExoneracionLocal getRealizarExoneracionBean() {
        return realizarExoneracionLocal;
    }
}
